import { BaseEntity } from 'src/common/entitys/base';
import { Column, Entity, PrimaryColumn } from 'typeorm';

@Entity({ name: 'sys_page', comment: '页面资源表' })
export class PageEntity extends BaseEntity {
  @PrimaryColumn({ name: 'page_id', type: 'char', comment: '页面id', length: 36 })
  pageId: string;

  @Column({ name: 'page_name', type: 'varchar', length: 255, comment: '菜单名称' })
  pageName: string;

  @Column({ name: 'path', type: 'varchar', comment: '页面地址' })
  path: string;

  @Column({ name: 'is_iframe', type: 'char', comment: '是否是iframe', default: '0', length: 1 })
  isIframe: string;
}
